package com.stars.common.chart;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName LineChart 折线图,柱状图
 * @Description:
 * @Author DJ
 * @Date 2019/10/28
 * @Version V1.0
 **/
@Data
public class LineBarChart {
    //表头
    private String title;
    //副表头
    private String subtext;
    //拆线名称
    private List<String> legendData;
    //拆线图数据
    private List<SeriesData> seriesData;
    //x 名称
    private List<String> xAxisData;
    private String  yAxisType ="value";
    //y 单位
    private String  yAxisAxisLabel;
    //报表类型
    private String chartType = ChartTypeEnum.LINE.getValue();

    public LineBarChart(){
    }
    public LineBarChart(String title, String subtext,  List<String> xAxisData, List<String> legendData, List<SeriesData> seriesData, String chartType){
        this.title =title;
        this.subtext =subtext;
        this.seriesData =seriesData;
        this.legendData =legendData;
        this.chartType =chartType;
        this.xAxisData =xAxisData;

    }
    public LineBarChart(String title, String subtext,  List<String> xAxisData,  List<SeriesData> seriesData, String chartType){
        this.title =title;
        this.subtext =subtext;
        this.seriesData =seriesData;
        this.chartType =chartType;
        this.xAxisData =xAxisData;

    }

}
